<!DOCTYPE html>
<html lang="zh-CN">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
  </head>
  <body>
    <script>
      let arr1 = [
        { id: 1, name: '晚安' },
        { id: 2, name: '早安' },
        { id: 3, name: '午安' },
      ]
      let arr2 = [
        { id: 4, name: '滚开' },
        { id: 5, name: '不要' },
        { id: 6, name: '你是好人' },
      ]

      // 注意：需要打散后追加，才是同级的添加
      // arr1.push(...arr2)

      // 小麻烦
      // arr1 = arr1.concat(arr2)

      // 两个展开也行
      arr1 = [...arr1, ...arr2]

      console.log(arr1)
    </script>
  </body>
</html>
